<!DOCTYPE html >
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>s3Slider jQuery plugin</title>
<!-- CSS -->
<style type="text/css" media="screen">
#slider1 {
    width: 720px; /* important to be same as image width */
    height: 300px; /* important to be same as image height */
    position: relative; /* important */
	overflow: hidden; /* important */
}

#slider1Content {
    width: 680px; /* important to be same as image width or wider */
    position: absolute;
	top: 0;
	margin-left: 0;
}
.slider1Image {
    float: left;
    position: relative;
	display: none;
}
.slider1Image span {
    position: absolute;
	font: 10px/15px Arial, Helvetica, sans-serif;
    padding: 10px 13px;
    width: 694px;
    background-color: #000;
    filter: alpha(opacity=70);
    -moz-opacity: 0.7;
	-khtml-opacity: 0.7;
    opacity: 0.7;
    color: #fff;
    display: none;
}
.clear {
	clear: both;
}
.slider1Image span strong {
    font-size: 14px;
}
.left {
	top: 0;
    left: 0;
	width: 150px !important;
	height: 280px;
}
.right {
	right: 0;
	bottom: 0;
	width: 150px !important;
	height: 290px;
}
ul { list-style-type: none;}
</style>
<!-- JavaScripts-->
<script type="text/javascript" src="<?php echo base_url() ?>js/jquery.js"></script>
<script type="text/javascript" src="<?php echo base_url() ?>js/s3Slider.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $('#slider1').s3Slider({
            timeOut: 4000 
        });
    });
</script>
</head>

<body>

    <div id="slider1">
        <ul id="slider1Content">
            <?php $i=0; foreach($slider as $key){ if ($i%2==0){ ?>
            <li class="slider1Image">
                
                <a href="#"><img src="<?php echo "..".$key->HinhMinhHoaBV; ?>" alt="1"  width="680" height="300"/></a>
                <span class="left"><strong><?php echo $key->TenBV ?></strong><br /><?php echo $key->TomTatBV ?></span></li>
                <?php } else {?>
            <li class="slider1Image">
                <a href="#"><img src="<?php echo "..".$key->HinhMinhHoaBV;?>" alt="2" width="680" height="300"/></a>
                <span class="right"><strong><?php echo $key->TenBV ?></strong><br /><?php echo $key->TomTatBV ?></span></li>
          <?php }$i=$i+1;}?>
            <div class="clear slider1Image"></div>
        </ul>
    </div>
  <!-- // slider -->

</body>
</html>
